<template>
<div class="pad20">
    <div class=" clearfix">
        <span>
            <span>评级日期</span>
            <el-date-picker class="left10" v-model="daterange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
            </el-date-picker>
        </span>
        <span class="left20">
            <span>星级</span>
            <el-select class="left10" v-model="value" placeholder="请选择">
                <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
            </el-select>
        </span>
        <span class="left20">
            <span>服务商名称</span>
            <el-input style="width: 220px" class="left10" v-model="input" placeholder="请输入内容"></el-input>
        </span>
        <el-button type="primary">搜索</el-button>
        <el-button type="primary" class="right">新增</el-button>
    </div>
    <el-table ref="multipleTable" class="top20" :data="list" fit highlight-current-row style="width: 100%;" header-row-class-name="tableHeader">
        <el-table-column label="评估日期" prop="a" align='center'></el-table-column>
        <el-table-column label="服务商名称" prop="b" align='center'></el-table-column>
        <el-table-column label="评分" prop="c" align='center'></el-table-column>
        <el-table-column label="星级" prop="d" align='center'>
            <template slot-scope="{row,$index}">
                <el-rate
                    v-model="row.d"
                    disabled>
                </el-rate>
            </template>
        </el-table-column>
        <el-table-column label="操作" prop="isEnable" align='center' width='200'>
            <template slot-scope="{row,$index}">
                <el-button type="primary">查看</el-button>
            </template>
        </el-table-column>
    </el-table>
    <div class="align-right top20">
        <el-pagination v-show="total>0" :total="total" :current-page.sync="originalQuery.pageNumber" :page-size="originalQuery.pageSize" background layout="prev, pager, next" @current-change="getList" @size-change="sizeChange" />
    </div>
</div>
</template>

<script>


export default {
    components: {},
    data() {
        return {
            daterange: '',
            list:[
                {a: '2020-05-23', b: '武汉至爱健康养老服务有限公司', c: '96', d: 5},
                {a: '2020-04-21', b: '单洞社区颐伦老年人服务中心', c: '95', d: 5},
                {a: '2020-03-09', b: '唐家墩马场社区居家养老中心', c: '93', d: 5},
                {a: '2019-12-26', b: '水仙里居家养老服务中心', c: '89', d: 4},
                {a: '2019-12-20', b: '前进社区九康居家养老服务中心', c: '88', d: 4},
                {a: '2019-11-23', b: '万松街居家养老服务中心', c: '87', d: 4},
                {a: '2019-11-13', b: '多闻社区颐鹤康复养老院', c: '83', d: 4},
                {a: '2019-10-21', b: '富豪社区舒美养老院', c: '78', d: 3},
            ],
            total: 4000,
            originalQuery: {
                pageNumber: 1,
                pageSize: 20,
            },
            input: '',
            value: '',
            options: [{
                    label: '一级',
                    value: 1
                },
                {
                    label: '二级',
                    value: 2
                },
                {
                    label: '三级',
                    value: 3
                },
            ]
        };
    },
    computed: {},
    watch: {},
    created() {},
    mounted() {},
    methods: {
        sizeChange(){

        },
        getList(){
            
        }
    }
};
</script>

<style scoped>

</style>
